package com.bot.nft.core.config;

import io.minio.MinioClient;

public class MinioUtil {

    private final static String URL = "http://www.botian.cloud:9000";
    private final static String ACCESSKEY = "R8sPc8osa25nfJjG";

    private final static String SECRETKEY = "k6WR9ANrHaoSJ2idGjAmN2mSgTgZ5M9F";

    private static MinioClient minioClient;

    static {
        minioClient = MinioClient.builder()
                .endpoint(URL)
//                .credentials(ACCESSKEY, SECRETKEY)
                .build();
    }

    private MinioUtil() {

    }

    public static MinioClient getMinioClient(){
        return minioClient;
    }
}
